/* 主容器样式 */
.order-form-container {
  padding: 24px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  min-height: calc(100vh - 48px);
}

/* 标题样式 */
.order-form-title {
  font-size: 24px;
  color: #1a1a1a;
  margin-bottom: 24px;
  font-weight: 600;
  padding-left: 16px;
  flex-shrink: 0;
  background-color: #ffffff;
  z-index: 2;
}

.order-form-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: #1890ff;
  border-radius: 2px;
}

/* 搜索区域样式 */
.order-search-container {
  margin-bottom: 24px;
  padding: 16px;
  background: #fafafa;
  border-radius: 8px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* 表头样式 */
.header-row {
  display: flex;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 600;
  color: #1a1a1a;
  flex-shrink: 0;
  align-items: center;
  height: 56px;
  padding-right: 17px;
  background: #fafafa;
  z-index: 1;
}

/* 单元格样式 */
.cell {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 14px;
  min-width: 0;
  word-break: break-all;
  white-space: normal;
  border-right: 1px solid #f0f0f0;
  height: 56px;
  background: inherit;
  transition: all 0.3s ease;
}

.header-row .cell:last-child,
.row .cell:last-child {
  border-right: none;
}

/* 定义列宽和对齐方式*/
.header-row .cell:nth-child(1),
.row .cell:nth-child(1) { /* 图片 */
  flex-basis: 8%;
  flex-grow: 0;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
}

.header-row .cell:nth-child(2),
.row .cell:nth-child(2) { /* 订单编号 */
  flex-basis: 12%;
  flex-grow: 0;
  flex-shrink: 0;
}

.header-row .cell:nth-child(3),
.row .cell:nth-child(3) { /* 商品信息 */
  flex-basis: 15%;
  flex-grow: 0;
  flex-shrink: 0;
}

.header-row .cell:nth-child(4),
.row .cell:nth-child(4) { /* 规格 */
  flex-basis: 8%;
  flex-grow: 0;
  flex-shrink: 0;
}

.header-row .cell:nth-child(5),
.row .cell:nth-child(5) { /* 数量 */
  flex-basis: 5%;
  flex-grow: 0;
  flex-shrink: 0;
  justify-content: flex-end;
}

.header-row .cell:nth-child(6),
.row .cell:nth-child(6) { /* 金额 */
  flex-basis: 8%;
  flex-grow: 0;
  flex-shrink: 0;
  justify-content: flex-end;
}

.header-row .cell:nth-child(7),
.row .cell:nth-child(7) { /* 运费 */
  flex-basis: 8%;
  flex-grow: 0;
  flex-shrink: 0;
  justify-content: flex-end;
}

.header-row .cell:nth-child(8),
.row .cell:nth-child(8) { /* 订单状态 */
  flex-basis: 10%;
  flex-grow: 0;
  flex-shrink: 0;
}

.header-row .cell:nth-child(9),
.row .cell:nth-child(9) { /* 物流状态 */
  flex-basis: 10%;
  flex-grow: 0;
  flex-shrink: 0;
}

.header-row .cell:nth-child(10),
.row .cell:nth-child(10) { /* 物流单号 */
  flex-basis: 10%;
  flex-grow: 0;
  flex-shrink: 0;
}

.header-row .cell:nth-child(11),
.row .cell:nth-child(11) { /* 支付时间 */
  flex-basis: 8%;
  flex-grow: 0;
  flex-shrink: 0;
}

/* 行样式 */
.row {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 56px;
  align-items: stretch;
  background: #fff;
}

.row:hover {
  background: #f5f7fa;
}

/* 价格样式 */
.price-cell {
  color: #f5222d;
  font-weight: 500;
}

/* 虚拟列表容器样式 */
.virtual-list-container {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0px 0 0 0;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* 虚拟列表内容区域 */
.virtual-list-content {
  flex: 1;
  min-height: 0;
  position: relative;
  width: 100%;
}

/* 分页器容器样式 */
.order-pagination-container {
  margin-top: 24px;
  padding: 16px;
  background: #fafafa;
  border-radius: 8px;
  display: flex;
  justify-content: center;
}

/* 图片单元格样式 */
.image-cell {
  width: 60px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-cell img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.image-cell img:hover {
  transform: scale(1.1);
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
  .shopping-list-container {
    padding: 16px;
  }

  .cell {
    padding: 12px;
    font-size: 13px;
  }

  .row, .header-row {
    min-height: 48px;
  }

  .header-row {
    padding-right: 16px;
  }

  .virtual-list-content {
    padding-right: 16px;
  }

  .shopping-list-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .search-container {
    padding: 12px;
    gap: 12px;
  }
}